Ext.define('WebOs.ViewFrame.tradition.view.NaviTreePanel', {
			extend : 'Ext.tree.Panel',
			alias : 'widget.vf_tradition_naviTreePanel',

			id : 'vf_tradition_naviTreePanel',

			width : 280,
			title : '功能导航',
			collapsible : true,
			split : true,

			initComponent : function() {
				var me = this;
				me.store = Ext
						.create('WebOs.ViewFrame.tradition.store.NavTreeStore');
				Ext.applyIf(me, {
							listeners : {
								afterrender : me.onNavTreeAfterrenderFire,
								itemdblclick : me.onTreeNodeDblClickFire
							},

							viewConfig : {

				}

						});

				me.callParent(arguments);
			},

			onNavTreeAfterrenderFire : function(cmp) {
				var me = this;
				var root = {
					name : 'root',
					text : '资源管理器',
					children : Ext.clone(core.getActiveView().getServiceJson()),
					leaf : false,
					expanded : true,
					serviceType : Constants.SFS_TYPE_TOC
				}

				cmp.getStore().setRootNode(root);
			},

			onTreeNodeDblClickFire : function(view, model) {
				var me = this;
				var serviceType = model.get('serviceType');
				if (serviceType == Constants.SFS_TYPE_SER) {
					core.display(model.get('name'));
				}
			}
			

		});